[do not merge] Issues with TASTY - dotty pickling/unpickling #1202
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After checking (pickling/unpickling) src/dotty:
Compilation issues:
1) Issue with private field access (
val Unknown
inobject Test
) fromclass Test
(Fail3.scala):Unpickling with FromTasty results in:
Similar code is in: dotty/tools/dotc/core/Types.scala
2) Issue with var parameter in class (Fail7.scala):
Unpickling with FromTasty results in:
#### **-Ycheck:all issues**
3) Code example (Fail1.scala):
Differences (in
def testMethod
). Such expression before pickling:after unpickling becomes:
Unpickling with FromTasty using
-Ycheck:all
results in:Similar code is in: dotty/runtime/vc/VCPrototype.scala
4) Code example (Fail5.scala):
Differences in types (in
val resultMethod
). Such expression before pickling:after unpickling becomes:
The difference is that the type for x$1 arg changes from scala.Array to scala.collection.Seq
Unpickling with FromTasty using
-Ycheck:all
results in:Similar code is in: dotty/tools/dotc/repl/CompilingInterpreter.scala